package com.amigo.online.provider.manager.service.impl;


import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.amigo.online.common.base.service.BaseService;
import com.amigo.online.provider.manager.mapper.AdvHomeStockTblMapper;
import com.amigo.online.provider.manager.model.entity.AdvHomeStockTbl;
import com.amigo.online.provider.manager.service.AdvHomeStockTblService;

@Service
public class AdvHomeStockTblServiceImpl extends BaseService<AdvHomeStockTbl> implements AdvHomeStockTblService {

    @Resource
    private AdvHomeStockTblMapper advHomeStockTblMapper;


    @Override
    public boolean savaAdvHomeStockTbl(AdvHomeStockTbl ahst) {
        if (advHomeStockTblMapper.savaAdvHomeStockTbl(ahst) <= 0) {
            return false;
        } else {
            return true;
        }

    }

    @Override
    public boolean updateAdvHomeStockTbl(AdvHomeStockTbl ahst) {
        if (advHomeStockTblMapper.updateAdvHomeStockTbl(ahst) <= 0) {
            return false;
        } else {
            return true;
        }

    }

    @Override
    public boolean deleteAdvHomeStockTbl(Long id) {
        if (advHomeStockTblMapper.deleteAdvHomeStockTbl(id) <= 0) {
            return false;
        } else {
            return true;
        }

    }

}
